/**

*/
var RowResize = new Class({
	//required: ["!ie6"],
	
    initialize : function (element){
		var elm = $(element);
		//elm.setStyle("lineHeight", element.offsetHeight);
		//
		// ff3 ok, chrome ok, opera ko,ie6-7 ko (a priori pas de gestion du lineHeight sur block)
		if(window.opera || /isIE6qqq|isIE7qqq/.test(document.documentElement.className)) {
			var size = elm.className.match(/\bheight([0-9]*)/) ? elm.className.match(/\bheight([0-9]*)/)[1] : elm.offsetHeight;
			if(size){
				elm.getElements('.cell').each(function (el){
					switch(true){
						case (/cellB/.test(el.className)):
							el.setStyle("marginTop", size - el.offsetHeight)
							break;
						case (/cellT/.test(el.className)):
							el.setStyle("marginBottom", size - el.offsetHeight)
							break;
						default:
							el.setStyle("marginTop", (size - el.offsetHeight)/2 )
							el.setStyle("marginBottom", (size - el.offsetHeight)/2 )
							break;
					}
					
				});
			};
			Notifier.fireEvent("onLayoutChanged", elm.getParent(".line"))
		}
		//if(isSized) elm.setStyle("lineHeight", isSized[1]);
		//if(isSized) elm.setStyle("height", isSized[1]);
		//if(isSized) elm.getElements('.cell')[2].setStyle("lineHeight", isSized[1]);
	}
});
Moodule.register("RowResize","div.row");